package cn.com.godliu.oauth2.repositorys;

import cn.com.godliu.oauth2.pojo.OauthClientDetails;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface OauthClientDetailsRepository extends CrudRepository<OauthClientDetails, String> {

    OauthClientDetails save(OauthClientDetails oauthClientDetails);

    @Query("select u from #{#entityName}  u where u.client_id=?1")
    OauthClientDetails findByClient_id(String clientid);

}
